/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
-------------------------------------------------------------------------------
\*---------------------------------------------------------------------------*/

stage1
{
    deltaT_     1e-08;
    interval_   1;
    timeSteps_  50;
    endTime_    #calc "$deltaT_*$interval_*$timeSteps_";
    writeTime_  #calc "$endTime_";
}

stage2
{
    deltaT_     1e-08;
    interval_   5;
    timeSteps_  100;
    preEndTime_ $..stage1.endTime_;
    endTime_    #calc "$preEndTime_+$deltaT_*$interval_*$timeSteps_";
    writeTime_  #calc "$endTime_-$preEndTime_";
}

stage3
{
    deltaT_     1e-08;
    interval_   10;
    timeSteps_  200;
    preEndTime_ $..stage2.endTime_;
    endTime_    #calc "$preEndTime_+$deltaT_*$interval_*$timeSteps_";
    writeTime_  #calc "$endTime_-$preEndTime_";
}

stage4
{
    deltaT_     1e-06;
    interval_   5;
    timeSteps_  1250;
    preEndTime_ $..stage2.endTime_;
    endTime_    #calc "$preEndTime_+$deltaT_*$interval_*$timeSteps_";
    writeTime_  #calc "$endTime_-$preEndTime_";
}

myDeltaT_           $stage4.deltaT_;
myEndTime_          $stage4.endTime_;
myWriteTime_        $stage4.writeTime_;
mySampleInterval_   $stage4.interval_;

// ************************************************************************* //

